import request from '@/utils/request'

// 查询用品列表
export function register_article_list(query) {
  return request({
    url: '/applyWaste/list',
    method: 'get',
    params: query
  })
}
// 提交报废
export function submitReject(data) {
  return request({
    url: '/applyWaste/employeeApply',
    method: 'post',
    data: data
  })
}

// 同add用一个
// 修改提交报废
export function editSubmitReject(data) {
  return request({
    url: '/applyWaste',
    method: 'put',
    data: data
  })
}

// 撤回报废申请
export function stock_withdrawApply(applyWasteId) {
  return request({
    url: '/applyWaste/withdrawApply/' + applyWasteId,
    method: 'post',
  })
}

// 查询批次不分页
export function register_batch_list() {
  return request({
    url: '/batch/all',
    method: 'get'
  })
}


